<%@ include file="public/include.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
	<link type="text/css" rel="stylesheet" href="styles/pub/menu.css">
</head>
<body>
	<div style="width:100%;" >
		<ul id="ciqMenu">
			<li><a href="CIQUserView.html" target="main">用户信息</a></li>

			<security:authorize ifAllGranted="ROLE_ADMIN">
			    <li><a href="CIQUserSearch.do" target="main">CIQ用户管理</a></li>
			    <li><a href="EntUserSearch.do" target="main">报检企业管理</a></li>
			    <li><a href="UnvalidDeclList.do" target="main">无效单管理</a></li>
			</security:authorize>
			
			<security:authorize ifAnyGranted="ROLE_APPLY_VIEW,ROLE_APPLY_CENSOR,ROLE_APPLY_AUDIT">
				<li style="cursor:n-resize;"><a href="ApplySearch.do"  target="main">备案管理</a></li>
			</security:authorize>
			
			<security:authorize ifAnyGranted="ROLE_DECL_VIEW,ROLE_DECL_MANAGE">
				<li style="cursor:n-resize;">展品管理
					<ul style="display:none;">
						<li><a href="ExhSearch.do"  target="main">按展会</a></li>
						<li><a href="DeclSearch.do"  target="main">按报检单</a></li>
					</ul>
				</li>
			</security:authorize>
			
			<security:authorize ifAnyGranted="ROLE_CLEAR_VIEW,ROLE_CLEAR_MANAGE">
				<li style="cursor:n-resize;"><a href="DeclClearSearch.do"  target="main">核销管理</a></li>
			</security:authorize>

			<security:authorize ifAnyGranted="ROLE_CASE_APPLY,ROLE_CASE_AUDIT">
				<li style="cursor:n-resize;"><a href="ExhArchiveSearch.do"  target="main">结案管理</a></li>
			</security:authorize>
			
			<security:authorize ifAnyGranted="ROLE_STAT">
				<li style="cursor:n-resize;">统计查询
					<ul style="display:none;">
						<li><a href="StatCensorSearch.do"  target="main">查验</a></li>
						<li><a href="StatClearSearch.do"  target="main">核销</a></li>
					</ul>
				</li>
			</security:authorize>
		</ul>
	</div>
	
	<script>
		function Each(list, fun){
		    for (var i = 0, len = list.length; i < len; i++){
		    	 fun(list[i], i);
		    }
		};
		Each(document.getElementById("ciqMenu").getElementsByTagName("li"), function(o){
		    o.onclick = function(e){
		        window.event ? window.event.cancelBubble = true : e.stopPropagation() ;
		        var ul = o.getElementsByTagName("ul")[0];
		        if(ul){ ul.style.display = ul.style.display == "none" ? "" : "none"; }
		    }
		})
	</script>
</body>
</html>
